<template>
  <div>
    <el-input v-model="input2" readonly :placeholder="placeholder" @click.native="openModal">
      <template slot="append">
        <svg-icon icon-class="owner" style="font-size:18px;" />
      </template>
    </el-input>

    <zrk-select-multi-user width="70%" :show.sync="open" @ok="callBack" />
  </div>
</template>

<script>
import ZrkSelectMultiUser from '@/components/Zrk/ZrkSelectMultiUser'
export default {
  name: 'ZrkPopup',
  components: { ZrkSelectMultiUser },
  props: {
    placeholder: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
      input2: '',
      open: false,
      title: '选择系统用户',
      width: '70%'
    }
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    openModal() {
      this.open = true
    },
    callBack(ids, nickNames) {
      this.input2 = nickNames
      this.$emit('input', ids)
      this.open = false
    }
  }
}
</script>

<style lang='scss' scoped>
</style>
